﻿using System;
using System.ComponentModel;
using System.Reflection;
using System.Runtime.InteropServices;
using Teigha.Core;

namespace Teigha.TD
{
	public class OdDbHostAppServices : OdDbBaseHostAppServices
	{
		[EditorBrowsable(EditorBrowsableState.Never)]
		public OdDbHostAppServices(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdDbHostAppServices_SWIGUpcast(cPtr), cMemoryOwn)
		{
			this.swigCPtr = new HandleRef(this, cPtr);
		}

		[EditorBrowsable(EditorBrowsableState.Never)]
		public static HandleRef getCPtr(OdDbHostAppServices obj)
		{
			if (obj != null)
			{
				return obj.swigCPtr;
			}
			return new HandleRef(null, IntPtr.Zero);
		}

		~OdDbHostAppServices()
		{
			this.Dispose();
		}

		public override void Dispose()
		{
			if (this.swigCPtr.Handle != IntPtr.Zero)
			{
				if (this.swigCMemOwn)
				{
					lock (this.locker)
					{
						if (this.swigCPtr.Handle != IntPtr.Zero && this.swigCMemOwn)
						{
							this.swigCMemOwn = false;
							TD_DbPINVOKE.delete_OdDbHostAppServices(this.swigCPtr);
						}
					}
					this.swigCMemOwn = false;
				}
				this.swigCPtr = new HandleRef(null, IntPtr.Zero);
			}
			GC.SuppressFinalize(this);
			base.Dispose();
		}

		public new static OdDbHostAppServices cast(OdRxObject pObj)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdDbHostAppServices_cast(OdRxObject.getCPtr(pObj));
			OdDbHostAppServices result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbHostAppServices)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbHostAppServices)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbHostAppServices)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new static OdRxClass desc()
		{
			OdRxClass result = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(TD_DbPINVOKE.OdDbHostAppServices_desc(), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdRxClass isA()
		{
			OdRxClass result = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(this.SwigDerivedClassHasMethod("isA", OdDbHostAppServices.swigMethodTypes1) ? TD_DbPINVOKE.OdDbHostAppServices_isASwigExplicitOdDbHostAppServices(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_isA(this.swigCPtr), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdRxObject queryX(OdRxClass protocolClass)
		{
			OdRxObject result = Teigha.Core.Helpers.odrxCreateObjectInternal(this.SwigDerivedClassHasMethod("queryX", OdDbHostAppServices.swigMethodTypes0) ? TD_DbPINVOKE.OdDbHostAppServices_queryXSwigExplicitOdDbHostAppServices(this.swigCPtr, OdRxClass.getCPtr(protocolClass)) : TD_DbPINVOKE.OdDbHostAppServices_queryX(this.swigCPtr, OdRxClass.getCPtr(protocolClass)), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new static OdDbHostAppServices createObject()
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdDbHostAppServices_createObject();
			OdDbHostAppServices result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbHostAppServices)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbHostAppServices)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbHostAppServices)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual string findFile(string filename, OdRxObject pDb, OdDbBaseHostAppServices.FindFileHint hint)
		{
			string result = this.SwigDerivedClassHasMethod("findFile", OdDbHostAppServices.swigMethodTypes2) ? TD_DbPINVOKE.OdDbHostAppServices_findFileSwigExplicitOdDbHostAppServices__SWIG_0(this.swigCPtr, filename, OdRxObject.getCPtr(pDb), (int)hint) : TD_DbPINVOKE.OdDbHostAppServices_findFile__SWIG_0(this.swigCPtr, filename, OdRxObject.getCPtr(pDb), (int)hint);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual string findFile(string filename, OdRxObject pDb)
		{
			string result = this.SwigDerivedClassHasMethod("findFile", OdDbHostAppServices.swigMethodTypes3) ? TD_DbPINVOKE.OdDbHostAppServices_findFileSwigExplicitOdDbHostAppServices__SWIG_1(this.swigCPtr, filename, OdRxObject.getCPtr(pDb)) : TD_DbPINVOKE.OdDbHostAppServices_findFile__SWIG_1(this.swigCPtr, filename, OdRxObject.getCPtr(pDb));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual string findFile(string filename)
		{
			string result = this.SwigDerivedClassHasMethod("findFile", OdDbHostAppServices.swigMethodTypes4) ? TD_DbPINVOKE.OdDbHostAppServices_findFileSwigExplicitOdDbHostAppServices__SWIG_2(this.swigCPtr, filename) : TD_DbPINVOKE.OdDbHostAppServices_findFile__SWIG_2(this.swigCPtr, filename);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdDbHostAppProgressMeter newProgressMeter()
		{
			IntPtr intPtr = this.SwigDerivedClassHasMethod("newProgressMeter", OdDbHostAppServices.swigMethodTypes5) ? TD_DbPINVOKE.OdDbHostAppServices_newProgressMeterSwigExplicitOdDbHostAppServices(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_newProgressMeter(this.swigCPtr);
			OdDbHostAppProgressMeter result = (intPtr == IntPtr.Zero) ? null : new OdDbHostAppProgressMeter(intPtr, false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual void releaseProgressMeter(OdDbHostAppProgressMeter pProgressMeter)
		{
			if (this.SwigDerivedClassHasMethod("releaseProgressMeter", OdDbHostAppServices.swigMethodTypes6))
			{
				TD_DbPINVOKE.OdDbHostAppServices_releaseProgressMeterSwigExplicitOdDbHostAppServices(this.swigCPtr, OdDbHostAppProgressMeter.getCPtr(pProgressMeter));
			}
			else
			{
				TD_DbPINVOKE.OdDbHostAppServices_releaseProgressMeter(this.swigCPtr, OdDbHostAppProgressMeter.getCPtr(pProgressMeter));
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual OdRxClass databaseClass()
		{
			OdRxClass result = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(this.SwigDerivedClassHasMethod("databaseClass", OdDbHostAppServices.swigMethodTypes39) ? TD_DbPINVOKE.OdDbHostAppServices_databaseClassSwigExplicitOdDbHostAppServices(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_databaseClass(this.swigCPtr), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbDatabase createDatabase(bool createDefault, MeasurementValue measurement)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("createDatabase", OdDbHostAppServices.swigMethodTypes40) ? TD_DbPINVOKE.OdDbHostAppServices_createDatabaseSwigExplicitOdDbHostAppServices__SWIG_0(this.swigCPtr, createDefault, (int)measurement) : TD_DbPINVOKE.OdDbHostAppServices_createDatabase__SWIG_0(this.swigCPtr, createDefault, (int)measurement);
			OdDbDatabase result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbDatabase createDatabase(bool createDefault)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("createDatabase", OdDbHostAppServices.swigMethodTypes41) ? TD_DbPINVOKE.OdDbHostAppServices_createDatabaseSwigExplicitOdDbHostAppServices__SWIG_1(this.swigCPtr, createDefault) : TD_DbPINVOKE.OdDbHostAppServices_createDatabase__SWIG_1(this.swigCPtr, createDefault);
			OdDbDatabase result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbDatabase createDatabase()
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("createDatabase", OdDbHostAppServices.swigMethodTypes42) ? TD_DbPINVOKE.OdDbHostAppServices_createDatabaseSwigExplicitOdDbHostAppServices__SWIG_2(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_createDatabase__SWIG_2(this.swigCPtr);
			OdDbDatabase result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbDatabase readFile(OdStreamBuf pStreamBuf, bool allowCPConversion, bool partialLoad, string password)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("readFile", OdDbHostAppServices.swigMethodTypes43) ? TD_DbPINVOKE.OdDbHostAppServices_readFileSwigExplicitOdDbHostAppServices__SWIG_0(this.swigCPtr, OdStreamBuf.getCPtr(pStreamBuf), allowCPConversion, partialLoad, password) : TD_DbPINVOKE.OdDbHostAppServices_readFile__SWIG_0(this.swigCPtr, OdStreamBuf.getCPtr(pStreamBuf), allowCPConversion, partialLoad, password);
			OdDbDatabase result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbDatabase readFile(OdStreamBuf pStreamBuf, bool allowCPConversion, bool partialLoad)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("readFile", OdDbHostAppServices.swigMethodTypes44) ? TD_DbPINVOKE.OdDbHostAppServices_readFileSwigExplicitOdDbHostAppServices__SWIG_1(this.swigCPtr, OdStreamBuf.getCPtr(pStreamBuf), allowCPConversion, partialLoad) : TD_DbPINVOKE.OdDbHostAppServices_readFile__SWIG_1(this.swigCPtr, OdStreamBuf.getCPtr(pStreamBuf), allowCPConversion, partialLoad);
			OdDbDatabase result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbDatabase readFile(OdStreamBuf pStreamBuf, bool allowCPConversion)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("readFile", OdDbHostAppServices.swigMethodTypes45) ? TD_DbPINVOKE.OdDbHostAppServices_readFileSwigExplicitOdDbHostAppServices__SWIG_2(this.swigCPtr, OdStreamBuf.getCPtr(pStreamBuf), allowCPConversion) : TD_DbPINVOKE.OdDbHostAppServices_readFile__SWIG_2(this.swigCPtr, OdStreamBuf.getCPtr(pStreamBuf), allowCPConversion);
			OdDbDatabase result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbDatabase readFile(OdStreamBuf pStreamBuf)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("readFile", OdDbHostAppServices.swigMethodTypes46) ? TD_DbPINVOKE.OdDbHostAppServices_readFileSwigExplicitOdDbHostAppServices__SWIG_3(this.swigCPtr, OdStreamBuf.getCPtr(pStreamBuf)) : TD_DbPINVOKE.OdDbHostAppServices_readFile__SWIG_3(this.swigCPtr, OdStreamBuf.getCPtr(pStreamBuf));
			OdDbDatabase result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbDatabase recoverFile(OdStreamBuf pStreamBuf, OdDbAuditInfo pAuditInfo, string password)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("recoverFile", OdDbHostAppServices.swigMethodTypes47) ? TD_DbPINVOKE.OdDbHostAppServices_recoverFileSwigExplicitOdDbHostAppServices__SWIG_0(this.swigCPtr, OdStreamBuf.getCPtr(pStreamBuf), OdDbAuditInfo.getCPtr(pAuditInfo), password) : TD_DbPINVOKE.OdDbHostAppServices_recoverFile__SWIG_0(this.swigCPtr, OdStreamBuf.getCPtr(pStreamBuf), OdDbAuditInfo.getCPtr(pAuditInfo), password);
			OdDbDatabase result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbDatabase recoverFile(OdStreamBuf pStreamBuf, OdDbAuditInfo pAuditInfo)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("recoverFile", OdDbHostAppServices.swigMethodTypes48) ? TD_DbPINVOKE.OdDbHostAppServices_recoverFileSwigExplicitOdDbHostAppServices__SWIG_1(this.swigCPtr, OdStreamBuf.getCPtr(pStreamBuf), OdDbAuditInfo.getCPtr(pAuditInfo)) : TD_DbPINVOKE.OdDbHostAppServices_recoverFile__SWIG_1(this.swigCPtr, OdStreamBuf.getCPtr(pStreamBuf), OdDbAuditInfo.getCPtr(pAuditInfo));
			OdDbDatabase result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbDatabase recoverFile(OdStreamBuf pStreamBuf)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("recoverFile", OdDbHostAppServices.swigMethodTypes49) ? TD_DbPINVOKE.OdDbHostAppServices_recoverFileSwigExplicitOdDbHostAppServices__SWIG_2(this.swigCPtr, OdStreamBuf.getCPtr(pStreamBuf)) : TD_DbPINVOKE.OdDbHostAppServices_recoverFile__SWIG_2(this.swigCPtr, OdStreamBuf.getCPtr(pStreamBuf));
			OdDbDatabase result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbDatabase readFile(string filename, bool allowCPConversion, bool partialLoad, FileShareMode shareMode, string password)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("readFile", OdDbHostAppServices.swigMethodTypes50) ? TD_DbPINVOKE.OdDbHostAppServices_readFileSwigExplicitOdDbHostAppServices__SWIG_4(this.swigCPtr, filename, allowCPConversion, partialLoad, (int)shareMode, password) : TD_DbPINVOKE.OdDbHostAppServices_readFile__SWIG_4(this.swigCPtr, filename, allowCPConversion, partialLoad, (int)shareMode, password);
			OdDbDatabase result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbDatabase readFile(string filename, bool allowCPConversion, bool partialLoad, FileShareMode shareMode)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("readFile", OdDbHostAppServices.swigMethodTypes51) ? TD_DbPINVOKE.OdDbHostAppServices_readFileSwigExplicitOdDbHostAppServices__SWIG_5(this.swigCPtr, filename, allowCPConversion, partialLoad, (int)shareMode) : TD_DbPINVOKE.OdDbHostAppServices_readFile__SWIG_5(this.swigCPtr, filename, allowCPConversion, partialLoad, (int)shareMode);
			OdDbDatabase result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbDatabase readFile(string filename, bool allowCPConversion, bool partialLoad)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("readFile", OdDbHostAppServices.swigMethodTypes52) ? TD_DbPINVOKE.OdDbHostAppServices_readFileSwigExplicitOdDbHostAppServices__SWIG_6(this.swigCPtr, filename, allowCPConversion, partialLoad) : TD_DbPINVOKE.OdDbHostAppServices_readFile__SWIG_6(this.swigCPtr, filename, allowCPConversion, partialLoad);
			OdDbDatabase result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbDatabase readFile(string filename, bool allowCPConversion)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("readFile", OdDbHostAppServices.swigMethodTypes53) ? TD_DbPINVOKE.OdDbHostAppServices_readFileSwigExplicitOdDbHostAppServices__SWIG_7(this.swigCPtr, filename, allowCPConversion) : TD_DbPINVOKE.OdDbHostAppServices_readFile__SWIG_7(this.swigCPtr, filename, allowCPConversion);
			OdDbDatabase result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbDatabase readFile(string filename)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("readFile", OdDbHostAppServices.swigMethodTypes54) ? TD_DbPINVOKE.OdDbHostAppServices_readFileSwigExplicitOdDbHostAppServices__SWIG_8(this.swigCPtr, filename) : TD_DbPINVOKE.OdDbHostAppServices_readFile__SWIG_8(this.swigCPtr, filename);
			OdDbDatabase result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual string program()
		{
			string result = this.SwigDerivedClassHasMethod("program", OdDbHostAppServices.swigMethodTypes7) ? TD_DbPINVOKE.OdDbHostAppServices_programSwigExplicitOdDbHostAppServices(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_program(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual string product()
		{
			string result = this.SwigDerivedClassHasMethod("product", OdDbHostAppServices.swigMethodTypes8) ? TD_DbPINVOKE.OdDbHostAppServices_productSwigExplicitOdDbHostAppServices(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_product(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual string companyName()
		{
			string result = this.SwigDerivedClassHasMethod("companyName", OdDbHostAppServices.swigMethodTypes9) ? TD_DbPINVOKE.OdDbHostAppServices_companyNameSwigExplicitOdDbHostAppServices(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_companyName(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual ProdIdCode prodcode()
		{
			ProdIdCode result = (ProdIdCode)(this.SwigDerivedClassHasMethod("prodcode", OdDbHostAppServices.swigMethodTypes10) ? TD_DbPINVOKE.OdDbHostAppServices_prodcodeSwigExplicitOdDbHostAppServices(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_prodcode(this.swigCPtr));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual string releaseMajorMinorString()
		{
			string result = this.SwigDerivedClassHasMethod("releaseMajorMinorString", OdDbHostAppServices.swigMethodTypes11) ? TD_DbPINVOKE.OdDbHostAppServices_releaseMajorMinorStringSwigExplicitOdDbHostAppServices(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_releaseMajorMinorString(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual int releaseMajorVersion()
		{
			int result = this.SwigDerivedClassHasMethod("releaseMajorVersion", OdDbHostAppServices.swigMethodTypes12) ? TD_DbPINVOKE.OdDbHostAppServices_releaseMajorVersionSwigExplicitOdDbHostAppServices(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_releaseMajorVersion(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual int releaseMinorVersion()
		{
			int result = this.SwigDerivedClassHasMethod("releaseMinorVersion", OdDbHostAppServices.swigMethodTypes13) ? TD_DbPINVOKE.OdDbHostAppServices_releaseMinorVersionSwigExplicitOdDbHostAppServices(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_releaseMinorVersion(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual string versionString()
		{
			string result = this.SwigDerivedClassHasMethod("versionString", OdDbHostAppServices.swigMethodTypes14) ? TD_DbPINVOKE.OdDbHostAppServices_versionStringSwigExplicitOdDbHostAppServices(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_versionString(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void warning1(OdResult warningOb, OdDbObjectId objectId)
		{
			if (this.SwigDerivedClassHasMethod("warning1", OdDbHostAppServices.swigMethodTypes55))
			{
				TD_DbPINVOKE.OdDbHostAppServices_warning1SwigExplicitOdDbHostAppServices(this.swigCPtr, (int)warningOb, OdDbObjectId.getCPtr(objectId));
			}
			else
			{
				TD_DbPINVOKE.OdDbHostAppServices_warning1(this.swigCPtr, (int)warningOb, OdDbObjectId.getCPtr(objectId));
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void warning(string warnVisGroup, OdResult warningOb, OdDbObjectId objectId)
		{
			if (this.SwigDerivedClassHasMethod("warning", OdDbHostAppServices.swigMethodTypes56))
			{
				TD_DbPINVOKE.OdDbHostAppServices_warningSwigExplicitOdDbHostAppServices(this.swigCPtr, warnVisGroup, (int)warningOb, OdDbObjectId.getCPtr(objectId));
			}
			else
			{
				TD_DbPINVOKE.OdDbHostAppServices_warning(this.swigCPtr, warnVisGroup, (int)warningOb, OdDbObjectId.getCPtr(objectId));
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void warning2(OdError err)
		{
			if (this.SwigDerivedClassHasMethod("warning2", OdDbHostAppServices.swigMethodTypes57))
			{
				TD_DbPINVOKE.OdDbHostAppServices_warning2SwigExplicitOdDbHostAppServices(this.swigCPtr, OdError.getCPtr(err));
			}
			else
			{
				TD_DbPINVOKE.OdDbHostAppServices_warning2(this.swigCPtr, OdError.getCPtr(err));
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void warning3(string warnVisGroup, OdError err)
		{
			if (this.SwigDerivedClassHasMethod("warning3", OdDbHostAppServices.swigMethodTypes58))
			{
				TD_DbPINVOKE.OdDbHostAppServices_warning3SwigExplicitOdDbHostAppServices(this.swigCPtr, warnVisGroup, OdError.getCPtr(err));
			}
			else
			{
				TD_DbPINVOKE.OdDbHostAppServices_warning3(this.swigCPtr, warnVisGroup, OdError.getCPtr(err));
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public new virtual string getErrorDescription(uint errorCode)
		{
			string result = this.SwigDerivedClassHasMethod("getErrorDescription", OdDbHostAppServices.swigMethodTypes19) ? TD_DbPINVOKE.OdDbHostAppServices_getErrorDescriptionSwigExplicitOdDbHostAppServices(this.swigCPtr, errorCode) : TD_DbPINVOKE.OdDbHostAppServices_getErrorDescription(this.swigCPtr, errorCode);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool doFullCRCCheck()
		{
			bool result = this.SwigDerivedClassHasMethod("doFullCRCCheck", OdDbHostAppServices.swigMethodTypes59) ? TD_DbPINVOKE.OdDbHostAppServices_doFullCRCCheckSwigExplicitOdDbHostAppServices(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_doFullCRCCheck(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdDbUndoController newUndoController()
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("newUndoController", OdDbHostAppServices.swigMethodTypes20) ? TD_DbPINVOKE.OdDbHostAppServices_newUndoControllerSwigExplicitOdDbHostAppServices(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_newUndoController(this.swigCPtr);
			OdDbUndoController result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbUndoController)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbUndoController)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbUndoController)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual void auditPrintReport(OdAuditInfo pAuditInfo, string strLine, int printDest)
		{
			if (this.SwigDerivedClassHasMethod("auditPrintReport", OdDbHostAppServices.swigMethodTypes22))
			{
				TD_DbPINVOKE.OdDbHostAppServices_auditPrintReportSwigExplicitOdDbHostAppServices(this.swigCPtr, OdAuditInfo.getCPtr(pAuditInfo), strLine, printDest);
			}
			else
			{
				TD_DbPINVOKE.OdDbHostAppServices_auditPrintReport(this.swigCPtr, OdAuditInfo.getCPtr(pAuditInfo), strLine, printDest);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual OdDbPlotSettingsValidator plotSettingsValidator()
		{
			OdDbPlotSettingsValidator result = (OdDbPlotSettingsValidator)Teigha.Core.Helpers.odrxCreateObjectInternal(this.SwigDerivedClassHasMethod("plotSettingsValidator", OdDbHostAppServices.swigMethodTypes60) ? TD_DbPINVOKE.OdDbHostAppServices_plotSettingsValidatorSwigExplicitOdDbHostAppServices(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_plotSettingsValidator(this.swigCPtr), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual bool ttfFileNameByDescriptor(OdTtfDescriptor description, ref string filename)
		{
			IntPtr intPtr = Marshal.StringToCoTaskMemUni(filename);
			IntPtr value = intPtr;
			bool result;
			try
			{
				bool flag = TD_DbPINVOKE.OdDbHostAppServices_ttfFileNameByDescriptor(this.swigCPtr, OdTtfDescriptor.getCPtr(description), ref intPtr);
				if (TD_DbPINVOKE.SWIGPendingException.Pending)
				{
					throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
				}
				result = flag;
			}
			finally
			{
				if (intPtr != value)
				{
					filename = Marshal.PtrToStringUni(intPtr);
				}
			}
			return result;
		}

		public new virtual string getAlternateFontName()
		{
			string result = this.SwigDerivedClassHasMethod("getAlternateFontName", OdDbHostAppServices.swigMethodTypes24) ? TD_DbPINVOKE.OdDbHostAppServices_getAlternateFontNameSwigExplicitOdDbHostAppServices(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_getAlternateFontName(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual string getFontMapFileName()
		{
			string result = this.SwigDerivedClassHasMethod("getFontMapFileName", OdDbHostAppServices.swigMethodTypes25) ? TD_DbPINVOKE.OdDbHostAppServices_getFontMapFileNameSwigExplicitOdDbHostAppServices(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_getFontMapFileName(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual string getPreferableFont(string fontName, OdFontType fontType)
		{
			string result = this.SwigDerivedClassHasMethod("getPreferableFont", OdDbHostAppServices.swigMethodTypes26) ? TD_DbPINVOKE.OdDbHostAppServices_getPreferableFontSwigExplicitOdDbHostAppServices(this.swigCPtr, fontName, (int)fontType) : TD_DbPINVOKE.OdDbHostAppServices_getPreferableFont(this.swigCPtr, fontName, (int)fontType);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual string getSubstituteFont(string fontName, OdFontType fontType)
		{
			string result = this.SwigDerivedClassHasMethod("getSubstituteFont", OdDbHostAppServices.swigMethodTypes27) ? TD_DbPINVOKE.OdDbHostAppServices_getSubstituteFontSwigExplicitOdDbHostAppServices(this.swigCPtr, fontName, (int)fontType) : TD_DbPINVOKE.OdDbHostAppServices_getSubstituteFont(this.swigCPtr, fontName, (int)fontType);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual string getSubstituteFontByChar(OdFont pFont, char unicodeChar, OdDbDatabase pDb)
		{
			string result = this.SwigDerivedClassHasMethod("getSubstituteFontByChar", OdDbHostAppServices.swigMethodTypes61) ? TD_DbPINVOKE.OdDbHostAppServices_getSubstituteFontByCharSwigExplicitOdDbHostAppServices(this.swigCPtr, OdFont.getCPtr(pFont), unicodeChar, OdDbDatabase.getCPtr(pDb)) : TD_DbPINVOKE.OdDbHostAppServices_getSubstituteFontByChar(this.swigCPtr, OdFont.getCPtr(pFont), unicodeChar, OdDbDatabase.getCPtr(pDb));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool getSystemFontFolders(OdStringArray aDirs)
		{
			bool result = this.SwigDerivedClassHasMethod("getSystemFontFolders", OdDbHostAppServices.swigMethodTypes62) ? TD_DbPINVOKE.OdDbHostAppServices_getSystemFontFoldersSwigExplicitOdDbHostAppServices(this.swigCPtr, OdStringArray.getCPtr(aDirs)) : TD_DbPINVOKE.OdDbHostAppServices_getSystemFontFolders(this.swigCPtr, OdStringArray.getCPtr(aDirs));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void collectFilePathsInDirectory(OdStringArray res, string sPath, string sFilter)
		{
			if (this.SwigDerivedClassHasMethod("collectFilePathsInDirectory", OdDbHostAppServices.swigMethodTypes63))
			{
				TD_DbPINVOKE.OdDbHostAppServices_collectFilePathsInDirectorySwigExplicitOdDbHostAppServices__SWIG_0(this.swigCPtr, OdStringArray.getCPtr(res), sPath, sFilter);
			}
			else
			{
				TD_DbPINVOKE.OdDbHostAppServices_collectFilePathsInDirectory__SWIG_0(this.swigCPtr, OdStringArray.getCPtr(res), sPath, sFilter);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void collectFilePathsInDirectory(OdStringArray res, string sPath)
		{
			if (this.SwigDerivedClassHasMethod("collectFilePathsInDirectory", OdDbHostAppServices.swigMethodTypes64))
			{
				TD_DbPINVOKE.OdDbHostAppServices_collectFilePathsInDirectorySwigExplicitOdDbHostAppServices__SWIG_1(this.swigCPtr, OdStringArray.getCPtr(res), sPath);
			}
			else
			{
				TD_DbPINVOKE.OdDbHostAppServices_collectFilePathsInDirectory__SWIG_1(this.swigCPtr, OdStringArray.getCPtr(res), sPath);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual OdHatchPatternManager patternManager()
		{
			OdHatchPatternManager result = (OdHatchPatternManager)Teigha.Core.Helpers.odrxCreateObjectInternal(TD_DbPINVOKE.OdDbHostAppServices_patternManager(this.swigCPtr), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool getPassword(string dwgName, bool isXref, ref string password)
		{
			IntPtr intPtr = Marshal.StringToCoTaskMemUni(password);
			IntPtr value = intPtr;
			bool result;
			try
			{
				bool flag = this.SwigDerivedClassHasMethod("getPassword", OdDbHostAppServices.swigMethodTypes66) ? TD_DbPINVOKE.OdDbHostAppServices_getPasswordSwigExplicitOdDbHostAppServices(this.swigCPtr, dwgName, isXref, ref intPtr) : TD_DbPINVOKE.OdDbHostAppServices_getPassword(this.swigCPtr, dwgName, isXref, ref intPtr);
				if (TD_DbPINVOKE.SWIGPendingException.Pending)
				{
					throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
				}
				result = flag;
			}
			finally
			{
				if (intPtr != value)
				{
					password = Marshal.PtrToStringUni(intPtr);
				}
			}
			return result;
		}

		public virtual OdPwdCache getPasswordCache()
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("getPasswordCache", OdDbHostAppServices.swigMethodTypes67) ? TD_DbPINVOKE.OdDbHostAppServices_getPasswordCacheSwigExplicitOdDbHostAppServices(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_getPasswordCache(this.swigCPtr);
			OdPwdCache result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdPwdCache)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdPwdCache)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdPwdCache)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbPageController newPageController()
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("newPageController", OdDbHostAppServices.swigMethodTypes68) ? TD_DbPINVOKE.OdDbHostAppServices_newPageControllerSwigExplicitOdDbHostAppServices(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_newPageController(this.swigCPtr);
			OdDbPageController result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbPageController)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbPageController)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbPageController)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdResult pageObjects(OdDbDatabase pDb)
		{
			OdResult result = (OdResult)(this.SwigDerivedClassHasMethod("pageObjects", OdDbHostAppServices.swigMethodTypes69) ? TD_DbPINVOKE.OdDbHostAppServices_pageObjectsSwigExplicitOdDbHostAppServices(this.swigCPtr, OdDbDatabase.getCPtr(pDb)) : TD_DbPINVOKE.OdDbHostAppServices_pageObjects(this.swigCPtr, OdDbDatabase.getCPtr(pDb)));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual string fileDialog(int flags, string dialogCaption, string defExt, string defFilename, string filter)
		{
			string result = this.SwigDerivedClassHasMethod("fileDialog", OdDbHostAppServices.swigMethodTypes28) ? TD_DbPINVOKE.OdDbHostAppServices_fileDialogSwigExplicitOdDbHostAppServices__SWIG_0(this.swigCPtr, flags, dialogCaption, defExt, defFilename, filter) : TD_DbPINVOKE.OdDbHostAppServices_fileDialog__SWIG_0(this.swigCPtr, flags, dialogCaption, defExt, defFilename, filter);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual string fileDialog(int flags, string dialogCaption, string defExt, string defFilename)
		{
			string result = this.SwigDerivedClassHasMethod("fileDialog", OdDbHostAppServices.swigMethodTypes29) ? TD_DbPINVOKE.OdDbHostAppServices_fileDialogSwigExplicitOdDbHostAppServices__SWIG_1(this.swigCPtr, flags, dialogCaption, defExt, defFilename) : TD_DbPINVOKE.OdDbHostAppServices_fileDialog__SWIG_1(this.swigCPtr, flags, dialogCaption, defExt, defFilename);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual string fileDialog(int flags, string dialogCaption, string defExt)
		{
			string result = this.SwigDerivedClassHasMethod("fileDialog", OdDbHostAppServices.swigMethodTypes30) ? TD_DbPINVOKE.OdDbHostAppServices_fileDialogSwigExplicitOdDbHostAppServices__SWIG_2(this.swigCPtr, flags, dialogCaption, defExt) : TD_DbPINVOKE.OdDbHostAppServices_fileDialog__SWIG_2(this.swigCPtr, flags, dialogCaption, defExt);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual string fileDialog(int flags, string dialogCaption)
		{
			string result = this.SwigDerivedClassHasMethod("fileDialog", OdDbHostAppServices.swigMethodTypes31) ? TD_DbPINVOKE.OdDbHostAppServices_fileDialogSwigExplicitOdDbHostAppServices__SWIG_3(this.swigCPtr, flags, dialogCaption) : TD_DbPINVOKE.OdDbHostAppServices_fileDialog__SWIG_3(this.swigCPtr, flags, dialogCaption);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual string fileDialog(int flags)
		{
			string result = this.SwigDerivedClassHasMethod("fileDialog", OdDbHostAppServices.swigMethodTypes32) ? TD_DbPINVOKE.OdDbHostAppServices_fileDialogSwigExplicitOdDbHostAppServices__SWIG_4(this.swigCPtr, flags) : TD_DbPINVOKE.OdDbHostAppServices_fileDialog__SWIG_4(this.swigCPtr, flags);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdGsDevice gsBitmapDevice(OdRxObject pViewObj, OdRxObject pDb, uint flags)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdDbHostAppServices_gsBitmapDevice__SWIG_0(this.swigCPtr, OdRxObject.getCPtr(pViewObj), OdRxObject.getCPtr(pDb), flags);
			OdGsDevice result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdGsDevice)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdGsDevice)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdGsDevice)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdGsDevice gsBitmapDevice(OdRxObject pViewObj, OdRxObject pDb)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdDbHostAppServices_gsBitmapDevice__SWIG_1(this.swigCPtr, OdRxObject.getCPtr(pViewObj), OdRxObject.getCPtr(pDb));
			OdGsDevice result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdGsDevice)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdGsDevice)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdGsDevice)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdGsDevice gsBitmapDevice(OdRxObject pViewObj)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdDbHostAppServices_gsBitmapDevice__SWIG_2(this.swigCPtr, OdRxObject.getCPtr(pViewObj));
			OdGsDevice result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdGsDevice)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdGsDevice)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdGsDevice)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdGsDevice gsBitmapDevice()
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdDbHostAppServices_gsBitmapDevice__SWIG_3(this.swigCPtr);
			OdGsDevice result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdGsDevice)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdGsDevice)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdGsDevice)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbLayoutManager layoutManager()
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("layoutManager", OdDbHostAppServices.swigMethodTypes70) ? TD_DbPINVOKE.OdDbHostAppServices_layoutManagerSwigExplicitOdDbHostAppServices(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_layoutManager(this.swigCPtr);
			OdDbLayoutManager result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbLayoutManager)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbLayoutManager)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbLayoutManager)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual uint educationalPlotStamp()
		{
			uint result = this.SwigDerivedClassHasMethod("educationalPlotStamp", OdDbHostAppServices.swigMethodTypes71) ? TD_DbPINVOKE.OdDbHostAppServices_educationalPlotStampSwigExplicitOdDbHostAppServices(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_educationalPlotStamp(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbBaseHostAppServices getDgnHostAppServices()
		{
			OdDbBaseHostAppServices result = (OdDbBaseHostAppServices)Teigha.Core.Helpers.odrxCreateObjectInternal(this.SwigDerivedClassHasMethod("getDgnHostAppServices", OdDbHostAppServices.swigMethodTypes72) ? TD_DbPINVOKE.OdDbHostAppServices_getDgnHostAppServicesSwigExplicitOdDbHostAppServices(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_getDgnHostAppServices(this.swigCPtr), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void getThumbSize(SWIGTYPE_p_unsigned_int nWidth, SWIGTYPE_p_unsigned_int nHeight)
		{
			if (this.SwigDerivedClassHasMethod("getThumbSize", OdDbHostAppServices.swigMethodTypes73))
			{
				TD_DbPINVOKE.OdDbHostAppServices_getThumbSizeSwigExplicitOdDbHostAppServices(this.swigCPtr, SWIGTYPE_p_unsigned_int.getCPtr(nWidth), SWIGTYPE_p_unsigned_int.getCPtr(nHeight));
			}
			else
			{
				TD_DbPINVOKE.OdDbHostAppServices_getThumbSize(this.swigCPtr, SWIGTYPE_p_unsigned_int.getCPtr(nWidth), SWIGTYPE_p_unsigned_int.getCPtr(nHeight));
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public new virtual string getTempPath()
		{
			string result = this.SwigDerivedClassHasMethod("getTempPath", OdDbHostAppServices.swigMethodTypes37) ? TD_DbPINVOKE.OdDbHostAppServices_getTempPathSwigExplicitOdDbHostAppServices(this.swigCPtr) : TD_DbPINVOKE.OdDbHostAppServices_getTempPath(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setATTREQ(bool var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setATTREQ(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool getATTREQ()
		{
			bool result = TD_DbPINVOKE.OdDbHostAppServices_getATTREQ(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setATTDIA(bool var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setATTDIA(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool getATTDIA()
		{
			bool result = TD_DbPINVOKE.OdDbHostAppServices_getATTDIA(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setBLIPMODE(bool var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setBLIPMODE(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool getBLIPMODE()
		{
			bool result = TD_DbPINVOKE.OdDbHostAppServices_getBLIPMODE(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setDELOBJ(bool var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setDELOBJ(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool getDELOBJ()
		{
			bool result = TD_DbPINVOKE.OdDbHostAppServices_getDELOBJ(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setFILEDIA(bool var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setFILEDIA(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool getFILEDIA()
		{
			bool result = TD_DbPINVOKE.OdDbHostAppServices_getFILEDIA(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setCOORDS(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setCOORDS(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getCOORDS()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getCOORDS(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setDRAGMODE(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setDRAGMODE(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getDRAGMODE()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getDRAGMODE(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setOSMODE(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setOSMODE(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getOSMODE()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getOSMODE(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setPICKFIRST(bool var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setPICKFIRST(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool getPICKFIRST()
		{
			bool result = TD_DbPINVOKE.OdDbHostAppServices_getPICKFIRST(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setPICKBOX(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setPICKBOX(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getPICKBOX()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getPICKBOX(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setPICKADD(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setPICKADD(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getPICKADD()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getPICKADD(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setPICKSTYLE(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setPICKSTYLE(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getPICKSTYLE()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getPICKSTYLE(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setLWDISPSCALE(double var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setLWDISPSCALE(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual double getLWDISPSCALE()
		{
			double result = TD_DbPINVOKE.OdDbHostAppServices_getLWDISPSCALE(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setLWDEFAULT(LineWeight var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setLWDEFAULT(this.swigCPtr, (int)var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual LineWeight getLWDEFAULT()
		{
			LineWeight result = (LineWeight)TD_DbPINVOKE.OdDbHostAppServices_getLWDEFAULT(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setFONTALT(string var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setFONTALT(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual string getFONTALT()
		{
			string result = TD_DbPINVOKE.OdDbHostAppServices_getFONTALT(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setPLINETYPE(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setPLINETYPE(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getPLINETYPE()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getPLINETYPE(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setSAVEROUNDTRIP(bool var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setSAVEROUNDTRIP(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool getSAVEROUNDTRIP()
		{
			bool result = TD_DbPINVOKE.OdDbHostAppServices_getSAVEROUNDTRIP(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setPROXYSHOW(ProxyImage var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setPROXYSHOW(this.swigCPtr, (int)var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual ProxyImage getPROXYSHOW()
		{
			ProxyImage result = (ProxyImage)TD_DbPINVOKE.OdDbHostAppServices_getPROXYSHOW(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setTEXTFILL(bool var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setTEXTFILL(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool getTEXTFILL()
		{
			bool result = TD_DbPINVOKE.OdDbHostAppServices_getTEXTFILL(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setGRIPHOVER(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setGRIPHOVER(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getGRIPHOVER()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getGRIPHOVER(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setGRIPOBJLIMIT(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setGRIPOBJLIMIT(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getGRIPOBJLIMIT()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getGRIPOBJLIMIT(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setGRIPTIPS(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setGRIPTIPS(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getGRIPTIPS()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getGRIPTIPS(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setHPASSOC(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setHPASSOC(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getHPASSOC()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getHPASSOC(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setLOCALROOTPREFIX(string var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setLOCALROOTPREFIX(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual string getLOCALROOTPREFIX()
		{
			string result = TD_DbPINVOKE.OdDbHostAppServices_getLOCALROOTPREFIX(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setLOGFILEMODE(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setLOGFILEMODE(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getLOGFILEMODE()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getLOGFILEMODE(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setMAXHATCHDENSITY(uint var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setMAXHATCHDENSITY(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual uint getMAXHATCHDENSITY()
		{
			uint result = TD_DbPINVOKE.OdDbHostAppServices_getMAXHATCHDENSITY(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setFIELDDISPLAY(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setFIELDDISPLAY(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getFIELDDISPLAY()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getFIELDDISPLAY(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setR12SaveDeviation(double var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setR12SaveDeviation(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual double getR12SaveDeviation()
		{
			double result = TD_DbPINVOKE.OdDbHostAppServices_getR12SaveDeviation(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setR12SaveAccuracy(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setR12SaveAccuracy(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getR12SaveAccuracy()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getR12SaveAccuracy(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setAcisSaveAsMode(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setAcisSaveAsMode(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getAcisSaveAsMode()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getAcisSaveAsMode(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setAcisProxyMode(sbyte var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setAcisProxyMode(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual sbyte getAcisProxyMode()
		{
			sbyte result = TD_DbPINVOKE.OdDbHostAppServices_getAcisProxyMode(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setUCSVIEW(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setUCSVIEW(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getUCSVIEW()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getUCSVIEW(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setGRIPBLOCK(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setGRIPBLOCK(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getGRIPBLOCK()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getGRIPBLOCK(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setGRIPCOLOR(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setGRIPCOLOR(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getGRIPCOLOR()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getGRIPCOLOR(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setGRIPDYNCOLOR(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setGRIPDYNCOLOR(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getGRIPDYNCOLOR()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getGRIPDYNCOLOR(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setGRIPHOT(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setGRIPHOT(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getGRIPHOT()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getGRIPHOT(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setGRIPS(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setGRIPS(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getGRIPS()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getGRIPS(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setGRIPSIZE(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setGRIPSIZE(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getGRIPSIZE()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getGRIPSIZE(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setSAVEFIDELITY(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setSAVEFIDELITY(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getSAVEFIDELITY()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getSAVEFIDELITY(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setDWFOSNAP(bool var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setDWFOSNAP(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool getDWFOSNAP()
		{
			bool result = TD_DbPINVOKE.OdDbHostAppServices_getDWFOSNAP(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setDGNOSNAP(bool var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setDGNOSNAP(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool getDGNOSNAP()
		{
			bool result = TD_DbPINVOKE.OdDbHostAppServices_getDGNOSNAP(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setTHUMBSIZE(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setTHUMBSIZE(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getTHUMBSIZE()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getTHUMBSIZE(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setPUBLISHHATCH(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setPUBLISHHATCH(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getPUBLISHHATCH()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getPUBLISHHATCH(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setOPENPARTIAL(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setOPENPARTIAL(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getOPENPARTIAL()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getOPENPARTIAL(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setDGNIMPORTMAX(double var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setDGNIMPORTMAX(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual double getDGNIMPORTMAX()
		{
			double result = TD_DbPINVOKE.OdDbHostAppServices_getDGNIMPORTMAX(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setPDFOSNAP(bool var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setPDFOSNAP(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool getPDFOSNAP()
		{
			bool result = TD_DbPINVOKE.OdDbHostAppServices_getPDFOSNAP(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setXFADECTL(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setXFADECTL(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual short getXFADECTL()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getXFADECTL(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setPLINECACHE(bool var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setPLINECACHE(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool getPLINECACHE()
		{
			bool result = TD_DbPINVOKE.OdDbHostAppServices_getPLINECACHE(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setDxfTextAdjustAlignment(bool var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setDxfTextAdjustAlignment(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool getDxfTextAdjustAlignment()
		{
			bool result = TD_DbPINVOKE.OdDbHostAppServices_getDxfTextAdjustAlignment(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setRecomputeDimBlocksRequired(bool var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setRecomputeDimBlocksRequired(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool getRecomputeDimBlocksRequired()
		{
			bool result = TD_DbPINVOKE.OdDbHostAppServices_getRecomputeDimBlocksRequired(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setMtMode(short var)
		{
			TD_DbPINVOKE.OdDbHostAppServices_setMtMode(this.swigCPtr, var);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public new virtual short getMtMode()
		{
			short result = TD_DbPINVOKE.OdDbHostAppServices_getMtMode(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		private void SwigDirectorConnect()
		{
			if (this.SwigDerivedClassHasMethod("queryX", OdDbHostAppServices.swigMethodTypes0))
			{
				this.swigDelegate0 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_0(this.SwigDirectorqueryX);
			}
			if (this.SwigDerivedClassHasMethod("isA", OdDbHostAppServices.swigMethodTypes1))
			{
				this.swigDelegate1 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_1(this.SwigDirectorisA);
			}
			if (this.SwigDerivedClassHasMethod("findFile", OdDbHostAppServices.swigMethodTypes2))
			{
				this.swigDelegate2 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_2(this.SwigDirectorfindFile__SWIG_0);
			}
			if (this.SwigDerivedClassHasMethod("findFile", OdDbHostAppServices.swigMethodTypes3))
			{
				this.swigDelegate3 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_3(this.SwigDirectorfindFile__SWIG_1);
			}
			if (this.SwigDerivedClassHasMethod("findFile", OdDbHostAppServices.swigMethodTypes4))
			{
				this.swigDelegate4 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_4(this.SwigDirectorfindFile__SWIG_2);
			}
			if (this.SwigDerivedClassHasMethod("newProgressMeter", OdDbHostAppServices.swigMethodTypes5))
			{
				this.swigDelegate5 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_5(this.SwigDirectornewProgressMeter);
			}
			if (this.SwigDerivedClassHasMethod("releaseProgressMeter", OdDbHostAppServices.swigMethodTypes6))
			{
				this.swigDelegate6 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_6(this.SwigDirectorreleaseProgressMeter);
			}
			if (this.SwigDerivedClassHasMethod("program", OdDbHostAppServices.swigMethodTypes7))
			{
				this.swigDelegate7 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_7(this.SwigDirectorprogram);
			}
			if (this.SwigDerivedClassHasMethod("product", OdDbHostAppServices.swigMethodTypes8))
			{
				this.swigDelegate8 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_8(this.SwigDirectorproduct);
			}
			if (this.SwigDerivedClassHasMethod("companyName", OdDbHostAppServices.swigMethodTypes9))
			{
				this.swigDelegate9 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_9(this.SwigDirectorcompanyName);
			}
			if (this.SwigDerivedClassHasMethod("prodcode", OdDbHostAppServices.swigMethodTypes10))
			{
				this.swigDelegate10 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_10(this.SwigDirectorprodcode);
			}
			if (this.SwigDerivedClassHasMethod("releaseMajorMinorString", OdDbHostAppServices.swigMethodTypes11))
			{
				this.swigDelegate11 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_11(this.SwigDirectorreleaseMajorMinorString);
			}
			if (this.SwigDerivedClassHasMethod("releaseMajorVersion", OdDbHostAppServices.swigMethodTypes12))
			{
				this.swigDelegate12 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_12(this.SwigDirectorreleaseMajorVersion);
			}
			if (this.SwigDerivedClassHasMethod("releaseMinorVersion", OdDbHostAppServices.swigMethodTypes13))
			{
				this.swigDelegate13 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_13(this.SwigDirectorreleaseMinorVersion);
			}
			if (this.SwigDerivedClassHasMethod("versionString", OdDbHostAppServices.swigMethodTypes14))
			{
				this.swigDelegate14 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_14(this.SwigDirectorversionString);
			}
			if (this.SwigDerivedClassHasMethod("warning", OdDbHostAppServices.swigMethodTypes15))
			{
				this.swigDelegate15 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_15(this.SwigDirectorwarning__SWIG_0);
			}
			if (this.SwigDerivedClassHasMethod("warning", OdDbHostAppServices.swigMethodTypes16))
			{
				this.swigDelegate16 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_16(this.SwigDirectorwarning__SWIG_1);
			}
			if (this.SwigDerivedClassHasMethod("warning", OdDbHostAppServices.swigMethodTypes17))
			{
				this.swigDelegate17 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_17(this.SwigDirectorwarning__SWIG_2);
			}
			if (this.SwigDerivedClassHasMethod("warning", OdDbHostAppServices.swigMethodTypes18))
			{
				this.swigDelegate18 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_18(this.SwigDirectorwarning__SWIG_3);
			}
			if (this.SwigDerivedClassHasMethod("getErrorDescription", OdDbHostAppServices.swigMethodTypes19))
			{
				this.swigDelegate19 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_19(this.SwigDirectorgetErrorDescription);
			}
			if (this.SwigDerivedClassHasMethod("newUndoController", OdDbHostAppServices.swigMethodTypes20))
			{
				this.swigDelegate20 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_20(this.SwigDirectornewUndoController);
			}
			if (this.SwigDerivedClassHasMethod("newUndoStream", OdDbHostAppServices.swigMethodTypes21))
			{
				this.swigDelegate21 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_21(this.SwigDirectornewUndoStream);
			}
			if (this.SwigDerivedClassHasMethod("auditPrintReport", OdDbHostAppServices.swigMethodTypes22))
			{
				this.swigDelegate22 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_22(this.SwigDirectorauditPrintReport);
			}
			if (this.SwigDerivedClassHasMethod("ttfFileNameByDescriptor", OdDbHostAppServices.swigMethodTypes23))
			{
				this.swigDelegate23 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_23(this.SwigDirectorttfFileNameByDescriptor);
			}
			if (this.SwigDerivedClassHasMethod("getAlternateFontName", OdDbHostAppServices.swigMethodTypes24))
			{
				this.swigDelegate24 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_24(this.SwigDirectorgetAlternateFontName);
			}
			if (this.SwigDerivedClassHasMethod("getFontMapFileName", OdDbHostAppServices.swigMethodTypes25))
			{
				this.swigDelegate25 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_25(this.SwigDirectorgetFontMapFileName);
			}
			if (this.SwigDerivedClassHasMethod("getPreferableFont", OdDbHostAppServices.swigMethodTypes26))
			{
				this.swigDelegate26 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_26(this.SwigDirectorgetPreferableFont);
			}
			if (this.SwigDerivedClassHasMethod("getSubstituteFont", OdDbHostAppServices.swigMethodTypes27))
			{
				this.swigDelegate27 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_27(this.SwigDirectorgetSubstituteFont);
			}
			if (this.SwigDerivedClassHasMethod("fileDialog", OdDbHostAppServices.swigMethodTypes28))
			{
				this.swigDelegate28 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_28(this.SwigDirectorfileDialog__SWIG_0);
			}
			if (this.SwigDerivedClassHasMethod("fileDialog", OdDbHostAppServices.swigMethodTypes29))
			{
				this.swigDelegate29 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_29(this.SwigDirectorfileDialog__SWIG_1);
			}
			if (this.SwigDerivedClassHasMethod("fileDialog", OdDbHostAppServices.swigMethodTypes30))
			{
				this.swigDelegate30 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_30(this.SwigDirectorfileDialog__SWIG_2);
			}
			if (this.SwigDerivedClassHasMethod("fileDialog", OdDbHostAppServices.swigMethodTypes31))
			{
				this.swigDelegate31 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_31(this.SwigDirectorfileDialog__SWIG_3);
			}
			if (this.SwigDerivedClassHasMethod("fileDialog", OdDbHostAppServices.swigMethodTypes32))
			{
				this.swigDelegate32 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_32(this.SwigDirectorfileDialog__SWIG_4);
			}
			if (this.SwigDerivedClassHasMethod("gsBitmapDevice", OdDbHostAppServices.swigMethodTypes33))
			{
				this.swigDelegate33 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_33(this.SwigDirectorgsBitmapDevice__SWIG_0);
			}
			if (this.SwigDerivedClassHasMethod("gsBitmapDevice", OdDbHostAppServices.swigMethodTypes34))
			{
				this.swigDelegate34 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_34(this.SwigDirectorgsBitmapDevice__SWIG_1);
			}
			if (this.SwigDerivedClassHasMethod("gsBitmapDevice", OdDbHostAppServices.swigMethodTypes35))
			{
				this.swigDelegate35 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_35(this.SwigDirectorgsBitmapDevice__SWIG_2);
			}
			if (this.SwigDerivedClassHasMethod("gsBitmapDevice", OdDbHostAppServices.swigMethodTypes36))
			{
				this.swigDelegate36 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_36(this.SwigDirectorgsBitmapDevice__SWIG_3);
			}
			if (this.SwigDerivedClassHasMethod("getTempPath", OdDbHostAppServices.swigMethodTypes37))
			{
				this.swigDelegate37 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_37(this.SwigDirectorgetTempPath);
			}
			if (this.SwigDerivedClassHasMethod("numThreads", OdDbHostAppServices.swigMethodTypes38))
			{
				this.swigDelegate38 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_38(this.SwigDirectornumThreads);
			}
			if (this.SwigDerivedClassHasMethod("databaseClass", OdDbHostAppServices.swigMethodTypes39))
			{
				this.swigDelegate39 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_39(this.SwigDirectordatabaseClass);
			}
			if (this.SwigDerivedClassHasMethod("createDatabase", OdDbHostAppServices.swigMethodTypes40))
			{
				this.swigDelegate40 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_40(this.SwigDirectorcreateDatabase__SWIG_0);
			}
			if (this.SwigDerivedClassHasMethod("createDatabase", OdDbHostAppServices.swigMethodTypes41))
			{
				this.swigDelegate41 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_41(this.SwigDirectorcreateDatabase__SWIG_1);
			}
			if (this.SwigDerivedClassHasMethod("createDatabase", OdDbHostAppServices.swigMethodTypes42))
			{
				this.swigDelegate42 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_42(this.SwigDirectorcreateDatabase__SWIG_2);
			}
			if (this.SwigDerivedClassHasMethod("readFile", OdDbHostAppServices.swigMethodTypes43))
			{
				this.swigDelegate43 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_43(this.SwigDirectorreadFile__SWIG_0);
			}
			if (this.SwigDerivedClassHasMethod("readFile", OdDbHostAppServices.swigMethodTypes44))
			{
				this.swigDelegate44 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_44(this.SwigDirectorreadFile__SWIG_1);
			}
			if (this.SwigDerivedClassHasMethod("readFile", OdDbHostAppServices.swigMethodTypes45))
			{
				this.swigDelegate45 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_45(this.SwigDirectorreadFile__SWIG_2);
			}
			if (this.SwigDerivedClassHasMethod("readFile", OdDbHostAppServices.swigMethodTypes46))
			{
				this.swigDelegate46 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_46(this.SwigDirectorreadFile__SWIG_3);
			}
			if (this.SwigDerivedClassHasMethod("recoverFile", OdDbHostAppServices.swigMethodTypes47))
			{
				this.swigDelegate47 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_47(this.SwigDirectorrecoverFile__SWIG_0);
			}
			if (this.SwigDerivedClassHasMethod("recoverFile", OdDbHostAppServices.swigMethodTypes48))
			{
				this.swigDelegate48 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_48(this.SwigDirectorrecoverFile__SWIG_1);
			}
			if (this.SwigDerivedClassHasMethod("recoverFile", OdDbHostAppServices.swigMethodTypes49))
			{
				this.swigDelegate49 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_49(this.SwigDirectorrecoverFile__SWIG_2);
			}
			if (this.SwigDerivedClassHasMethod("readFile", OdDbHostAppServices.swigMethodTypes50))
			{
				this.swigDelegate50 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_50(this.SwigDirectorreadFile__SWIG_4);
			}
			if (this.SwigDerivedClassHasMethod("readFile", OdDbHostAppServices.swigMethodTypes51))
			{
				this.swigDelegate51 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_51(this.SwigDirectorreadFile__SWIG_5);
			}
			if (this.SwigDerivedClassHasMethod("readFile", OdDbHostAppServices.swigMethodTypes52))
			{
				this.swigDelegate52 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_52(this.SwigDirectorreadFile__SWIG_6);
			}
			if (this.SwigDerivedClassHasMethod("readFile", OdDbHostAppServices.swigMethodTypes53))
			{
				this.swigDelegate53 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_53(this.SwigDirectorreadFile__SWIG_7);
			}
			if (this.SwigDerivedClassHasMethod("readFile", OdDbHostAppServices.swigMethodTypes54))
			{
				this.swigDelegate54 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_54(this.SwigDirectorreadFile__SWIG_8);
			}
			if (this.SwigDerivedClassHasMethod("warning1", OdDbHostAppServices.swigMethodTypes55))
			{
				this.swigDelegate55 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_55(this.SwigDirectorwarning1);
			}
			if (this.SwigDerivedClassHasMethod("warning", OdDbHostAppServices.swigMethodTypes56))
			{
				this.swigDelegate56 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_56(this.SwigDirectorwarning);
			}
			if (this.SwigDerivedClassHasMethod("warning2", OdDbHostAppServices.swigMethodTypes57))
			{
				this.swigDelegate57 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_57(this.SwigDirectorwarning2);
			}
			if (this.SwigDerivedClassHasMethod("warning3", OdDbHostAppServices.swigMethodTypes58))
			{
				this.swigDelegate58 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_58(this.SwigDirectorwarning3);
			}
			if (this.SwigDerivedClassHasMethod("doFullCRCCheck", OdDbHostAppServices.swigMethodTypes59))
			{
				this.swigDelegate59 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_59(this.SwigDirectordoFullCRCCheck);
			}
			if (this.SwigDerivedClassHasMethod("plotSettingsValidator", OdDbHostAppServices.swigMethodTypes60))
			{
				this.swigDelegate60 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_60(this.SwigDirectorplotSettingsValidator);
			}
			if (this.SwigDerivedClassHasMethod("getSubstituteFontByChar", OdDbHostAppServices.swigMethodTypes61))
			{
				this.swigDelegate61 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_61(this.SwigDirectorgetSubstituteFontByChar);
			}
			if (this.SwigDerivedClassHasMethod("getSystemFontFolders", OdDbHostAppServices.swigMethodTypes62))
			{
				this.swigDelegate62 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_62(this.SwigDirectorgetSystemFontFolders);
			}
			if (this.SwigDerivedClassHasMethod("collectFilePathsInDirectory", OdDbHostAppServices.swigMethodTypes63))
			{
				this.swigDelegate63 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_63(this.SwigDirectorcollectFilePathsInDirectory__SWIG_0);
			}
			if (this.SwigDerivedClassHasMethod("collectFilePathsInDirectory", OdDbHostAppServices.swigMethodTypes64))
			{
				this.swigDelegate64 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_64(this.SwigDirectorcollectFilePathsInDirectory__SWIG_1);
			}
			if (this.SwigDerivedClassHasMethod("patternManager", OdDbHostAppServices.swigMethodTypes65))
			{
				this.swigDelegate65 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_65(this.SwigDirectorpatternManager);
			}
			if (this.SwigDerivedClassHasMethod("getPassword", OdDbHostAppServices.swigMethodTypes66))
			{
				this.swigDelegate66 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_66(this.SwigDirectorgetPassword);
			}
			if (this.SwigDerivedClassHasMethod("getPasswordCache", OdDbHostAppServices.swigMethodTypes67))
			{
				this.swigDelegate67 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_67(this.SwigDirectorgetPasswordCache);
			}
			if (this.SwigDerivedClassHasMethod("newPageController", OdDbHostAppServices.swigMethodTypes68))
			{
				this.swigDelegate68 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_68(this.SwigDirectornewPageController);
			}
			if (this.SwigDerivedClassHasMethod("pageObjects", OdDbHostAppServices.swigMethodTypes69))
			{
				this.swigDelegate69 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_69(this.SwigDirectorpageObjects);
			}
			if (this.SwigDerivedClassHasMethod("layoutManager", OdDbHostAppServices.swigMethodTypes70))
			{
				this.swigDelegate70 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_70(this.SwigDirectorlayoutManager);
			}
			if (this.SwigDerivedClassHasMethod("educationalPlotStamp", OdDbHostAppServices.swigMethodTypes71))
			{
				this.swigDelegate71 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_71(this.SwigDirectoreducationalPlotStamp);
			}
			if (this.SwigDerivedClassHasMethod("getDgnHostAppServices", OdDbHostAppServices.swigMethodTypes72))
			{
				this.swigDelegate72 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_72(this.SwigDirectorgetDgnHostAppServices);
			}
			if (this.SwigDerivedClassHasMethod("getThumbSize", OdDbHostAppServices.swigMethodTypes73))
			{
				this.swigDelegate73 = new OdDbHostAppServices.SwigDelegateOdDbHostAppServices_73(this.SwigDirectorgetThumbSize);
			}
			TD_DbPINVOKE.OdDbHostAppServices_director_connect(this.swigCPtr, this.swigDelegate0, this.swigDelegate1, this.swigDelegate2, this.swigDelegate3, this.swigDelegate4, this.swigDelegate5, this.swigDelegate6, this.swigDelegate7, this.swigDelegate8, this.swigDelegate9, this.swigDelegate10, this.swigDelegate11, this.swigDelegate12, this.swigDelegate13, this.swigDelegate14, this.swigDelegate15, this.swigDelegate16, this.swigDelegate17, this.swigDelegate18, this.swigDelegate19, this.swigDelegate20, this.swigDelegate21, this.swigDelegate22, this.swigDelegate23, this.swigDelegate24, this.swigDelegate25, this.swigDelegate26, this.swigDelegate27, this.swigDelegate28, this.swigDelegate29, this.swigDelegate30, this.swigDelegate31, this.swigDelegate32, this.swigDelegate33, this.swigDelegate34, this.swigDelegate35, this.swigDelegate36, this.swigDelegate37, this.swigDelegate38, this.swigDelegate39, this.swigDelegate40, this.swigDelegate41, this.swigDelegate42, this.swigDelegate43, this.swigDelegate44, this.swigDelegate45, this.swigDelegate46, this.swigDelegate47, this.swigDelegate48, this.swigDelegate49, this.swigDelegate50, this.swigDelegate51, this.swigDelegate52, this.swigDelegate53, this.swigDelegate54, this.swigDelegate55, this.swigDelegate56, this.swigDelegate57, this.swigDelegate58, this.swigDelegate59, this.swigDelegate60, this.swigDelegate61, this.swigDelegate62, this.swigDelegate63, this.swigDelegate64, this.swigDelegate65, this.swigDelegate66, this.swigDelegate67, this.swigDelegate68, this.swigDelegate69, this.swigDelegate70, this.swigDelegate71, this.swigDelegate72, this.swigDelegate73);
		}

		private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes)
		{
			MethodInfo method = base.GetType().GetMethod(methodName, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, methodTypes, null);
			return method.DeclaringType.IsSubclassOf(typeof(OdDbHostAppServices));
		}

		private IntPtr SwigDirectorqueryX(IntPtr protocolClass)
		{
			return OdRxObject.getCPtr(this.queryX((OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(protocolClass, false))).Handle;
		}

		private IntPtr SwigDirectorisA()
		{
			return OdRxClass.getCPtr(this.isA()).Handle;
		}

		[return: MarshalAs(UnmanagedType.LPWStr)]
		private string SwigDirectorfindFile__SWIG_0([MarshalAs(UnmanagedType.LPWStr)] string filename, IntPtr pDb, int hint)
		{
			return this.findFile(filename, Teigha.Core.Helpers.odrxCreateObjectInternal(pDb, false), (OdDbBaseHostAppServices.FindFileHint)hint);
		}

		[return: MarshalAs(UnmanagedType.LPWStr)]
		private string SwigDirectorfindFile__SWIG_1([MarshalAs(UnmanagedType.LPWStr)] string filename, IntPtr pDb)
		{
			return this.findFile(filename, Teigha.Core.Helpers.odrxCreateObjectInternal(pDb, false));
		}

		[return: MarshalAs(UnmanagedType.LPWStr)]
		private string SwigDirectorfindFile__SWIG_2([MarshalAs(UnmanagedType.LPWStr)] string filename)
		{
			return this.findFile(filename);
		}

		private IntPtr SwigDirectornewProgressMeter()
		{
			return OdDbHostAppProgressMeter.getCPtr(this.newProgressMeter()).Handle;
		}

		private void SwigDirectorreleaseProgressMeter(IntPtr pProgressMeter)
		{
			this.releaseProgressMeter((pProgressMeter == IntPtr.Zero) ? null : new OdDbHostAppProgressMeter(pProgressMeter, false));
		}

		[return: MarshalAs(UnmanagedType.LPWStr)]
		private string SwigDirectorprogram()
		{
			return this.program();
		}

		[return: MarshalAs(UnmanagedType.LPWStr)]
		private string SwigDirectorproduct()
		{
			return this.product();
		}

		[return: MarshalAs(UnmanagedType.LPWStr)]
		private string SwigDirectorcompanyName()
		{
			return this.companyName();
		}

		private int SwigDirectorprodcode()
		{
			return (int)this.prodcode();
		}

		[return: MarshalAs(UnmanagedType.LPWStr)]
		private string SwigDirectorreleaseMajorMinorString()
		{
			return this.releaseMajorMinorString();
		}

		private int SwigDirectorreleaseMajorVersion()
		{
			return this.releaseMajorVersion();
		}

		private int SwigDirectorreleaseMinorVersion()
		{
			return this.releaseMinorVersion();
		}

		[return: MarshalAs(UnmanagedType.LPWStr)]
		private string SwigDirectorversionString()
		{
			return this.versionString();
		}

		private void SwigDirectorwarning__SWIG_0([MarshalAs(UnmanagedType.LPWStr)] string message)
		{
			this.warning(message);
		}

		private void SwigDirectorwarning__SWIG_1(string warnVisGroup, [MarshalAs(UnmanagedType.LPWStr)] string message)
		{
			this.warning(warnVisGroup, message);
		}

		private void SwigDirectorwarning__SWIG_2(int warningOb)
		{
			this.warning((OdResult)warningOb);
		}

		private void SwigDirectorwarning__SWIG_3(string warnVisGroup, int warningOb)
		{
			this.warning(warnVisGroup, (OdResult)warningOb);
		}

		[return: MarshalAs(UnmanagedType.LPWStr)]
		private string SwigDirectorgetErrorDescription(uint errorCode)
		{
			return this.getErrorDescription(errorCode);
		}

		private IntPtr SwigDirectornewUndoController()
		{
			return OdDbUndoController.getCPtr(this.newUndoController()).Handle;
		}

		private IntPtr SwigDirectornewUndoStream()
		{
			return OdStreamBuf.getCPtr(this.newUndoStream()).Handle;
		}

		private void SwigDirectorauditPrintReport(IntPtr pAuditInfo, [MarshalAs(UnmanagedType.LPWStr)] string strLine, int printDest)
		{
			this.auditPrintReport((pAuditInfo == IntPtr.Zero) ? null : new OdAuditInfo(pAuditInfo, false), strLine, printDest);
		}

		private bool SwigDirectorttfFileNameByDescriptor(IntPtr description, ref IntPtr filename)
		{
			string text = Marshal.PtrToStringUni(filename);
			string b = text;
			bool result;
			try
			{
				result = this.ttfFileNameByDescriptor(new OdTtfDescriptor(description, false), ref text);
			}
			finally
			{
				if (text != b)
				{
					filename = Marshal.StringToCoTaskMemUni(text);
				}
			}
			return result;
		}

		[return: MarshalAs(UnmanagedType.LPWStr)]
		private string SwigDirectorgetAlternateFontName()
		{
			return this.getAlternateFontName();
		}

		[return: MarshalAs(UnmanagedType.LPWStr)]
		private string SwigDirectorgetFontMapFileName()
		{
			return this.getFontMapFileName();
		}

		[return: MarshalAs(UnmanagedType.LPWStr)]
		private string SwigDirectorgetPreferableFont([MarshalAs(UnmanagedType.LPWStr)] string fontName, int fontType)
		{
			return this.getPreferableFont(fontName, (OdFontType)fontType);
		}

		[return: MarshalAs(UnmanagedType.LPWStr)]
		private string SwigDirectorgetSubstituteFont([MarshalAs(UnmanagedType.LPWStr)] string fontName, int fontType)
		{
			return this.getSubstituteFont(fontName, (OdFontType)fontType);
		}

		[return: MarshalAs(UnmanagedType.LPWStr)]
		private string SwigDirectorfileDialog__SWIG_0(int flags, [MarshalAs(UnmanagedType.LPWStr)] string dialogCaption, [MarshalAs(UnmanagedType.LPWStr)] string defExt, [MarshalAs(UnmanagedType.LPWStr)] string defFilename, [MarshalAs(UnmanagedType.LPWStr)] string filter)
		{
			return this.fileDialog(flags, dialogCaption, defExt, defFilename, filter);
		}

		[return: MarshalAs(UnmanagedType.LPWStr)]
		private string SwigDirectorfileDialog__SWIG_1(int flags, [MarshalAs(UnmanagedType.LPWStr)] string dialogCaption, [MarshalAs(UnmanagedType.LPWStr)] string defExt, [MarshalAs(UnmanagedType.LPWStr)] string defFilename)
		{
			return this.fileDialog(flags, dialogCaption, defExt, defFilename);
		}

		[return: MarshalAs(UnmanagedType.LPWStr)]
		private string SwigDirectorfileDialog__SWIG_2(int flags, [MarshalAs(UnmanagedType.LPWStr)] string dialogCaption, [MarshalAs(UnmanagedType.LPWStr)] string defExt)
		{
			return this.fileDialog(flags, dialogCaption, defExt);
		}

		[return: MarshalAs(UnmanagedType.LPWStr)]
		private string SwigDirectorfileDialog__SWIG_3(int flags, [MarshalAs(UnmanagedType.LPWStr)] string dialogCaption)
		{
			return this.fileDialog(flags, dialogCaption);
		}

		[return: MarshalAs(UnmanagedType.LPWStr)]
		private string SwigDirectorfileDialog__SWIG_4(int flags)
		{
			return this.fileDialog(flags);
		}

		private IntPtr SwigDirectorgsBitmapDevice__SWIG_0(IntPtr pViewObj, IntPtr pDb, uint flags)
		{
			return OdGsDevice.getCPtr(this.gsBitmapDevice(Teigha.Core.Helpers.odrxCreateObjectInternal(pViewObj, false), Teigha.Core.Helpers.odrxCreateObjectInternal(pDb, false), flags)).Handle;
		}

		private IntPtr SwigDirectorgsBitmapDevice__SWIG_1(IntPtr pViewObj, IntPtr pDb)
		{
			return OdGsDevice.getCPtr(this.gsBitmapDevice(Teigha.Core.Helpers.odrxCreateObjectInternal(pViewObj, false), Teigha.Core.Helpers.odrxCreateObjectInternal(pDb, false))).Handle;
		}

		private IntPtr SwigDirectorgsBitmapDevice__SWIG_2(IntPtr pViewObj)
		{
			return OdGsDevice.getCPtr(this.gsBitmapDevice(Teigha.Core.Helpers.odrxCreateObjectInternal(pViewObj, false))).Handle;
		}

		private IntPtr SwigDirectorgsBitmapDevice__SWIG_3()
		{
			return OdGsDevice.getCPtr(this.gsBitmapDevice()).Handle;
		}

		[return: MarshalAs(UnmanagedType.LPWStr)]
		private string SwigDirectorgetTempPath()
		{
			return this.getTempPath();
		}

		private int SwigDirectornumThreads(int mtMode)
		{
			return this.numThreads((MultiThreadedMode)mtMode);
		}

		private IntPtr SwigDirectordatabaseClass()
		{
			return OdRxClass.getCPtr(this.databaseClass()).Handle;
		}

		private IntPtr SwigDirectorcreateDatabase__SWIG_0(bool createDefault, int measurement)
		{
			return OdDbDatabase.getCPtr(this.createDatabase(createDefault, (MeasurementValue)measurement)).Handle;
		}

		private IntPtr SwigDirectorcreateDatabase__SWIG_1(bool createDefault)
		{
			return OdDbDatabase.getCPtr(this.createDatabase(createDefault)).Handle;
		}

		private IntPtr SwigDirectorcreateDatabase__SWIG_2()
		{
			return OdDbDatabase.getCPtr(this.createDatabase()).Handle;
		}

		private IntPtr SwigDirectorreadFile__SWIG_0(IntPtr pStreamBuf, bool allowCPConversion, bool partialLoad, [MarshalAs(UnmanagedType.LPWStr)] string password)
		{
			return OdDbDatabase.getCPtr(this.readFile((OdStreamBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(pStreamBuf, false), allowCPConversion, partialLoad, password)).Handle;
		}

		private IntPtr SwigDirectorreadFile__SWIG_1(IntPtr pStreamBuf, bool allowCPConversion, bool partialLoad)
		{
			return OdDbDatabase.getCPtr(this.readFile((OdStreamBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(pStreamBuf, false), allowCPConversion, partialLoad)).Handle;
		}

		private IntPtr SwigDirectorreadFile__SWIG_2(IntPtr pStreamBuf, bool allowCPConversion)
		{
			return OdDbDatabase.getCPtr(this.readFile((OdStreamBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(pStreamBuf, false), allowCPConversion)).Handle;
		}

		private IntPtr SwigDirectorreadFile__SWIG_3(IntPtr pStreamBuf)
		{
			return OdDbDatabase.getCPtr(this.readFile((OdStreamBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(pStreamBuf, false))).Handle;
		}

		private IntPtr SwigDirectorrecoverFile__SWIG_0(IntPtr pStreamBuf, IntPtr pAuditInfo, [MarshalAs(UnmanagedType.LPWStr)] string password)
		{
			return OdDbDatabase.getCPtr(this.recoverFile((OdStreamBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(pStreamBuf, false), (pAuditInfo == IntPtr.Zero) ? null : new OdDbAuditInfo(pAuditInfo, false), password)).Handle;
		}

		private IntPtr SwigDirectorrecoverFile__SWIG_1(IntPtr pStreamBuf, IntPtr pAuditInfo)
		{
			return OdDbDatabase.getCPtr(this.recoverFile((OdStreamBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(pStreamBuf, false), (pAuditInfo == IntPtr.Zero) ? null : new OdDbAuditInfo(pAuditInfo, false))).Handle;
		}

		private IntPtr SwigDirectorrecoverFile__SWIG_2(IntPtr pStreamBuf)
		{
			return OdDbDatabase.getCPtr(this.recoverFile((OdStreamBuf)Teigha.Core.Helpers.odrxCreateObjectInternal(pStreamBuf, false))).Handle;
		}

		private IntPtr SwigDirectorreadFile__SWIG_4([MarshalAs(UnmanagedType.LPWStr)] string filename, bool allowCPConversion, bool partialLoad, int shareMode, [MarshalAs(UnmanagedType.LPWStr)] string password)
		{
			return OdDbDatabase.getCPtr(this.readFile(filename, allowCPConversion, partialLoad, (FileShareMode)shareMode, password)).Handle;
		}

		private IntPtr SwigDirectorreadFile__SWIG_5([MarshalAs(UnmanagedType.LPWStr)] string filename, bool allowCPConversion, bool partialLoad, int shareMode)
		{
			return OdDbDatabase.getCPtr(this.readFile(filename, allowCPConversion, partialLoad, (FileShareMode)shareMode)).Handle;
		}

		private IntPtr SwigDirectorreadFile__SWIG_6([MarshalAs(UnmanagedType.LPWStr)] string filename, bool allowCPConversion, bool partialLoad)
		{
			return OdDbDatabase.getCPtr(this.readFile(filename, allowCPConversion, partialLoad)).Handle;
		}

		private IntPtr SwigDirectorreadFile__SWIG_7([MarshalAs(UnmanagedType.LPWStr)] string filename, bool allowCPConversion)
		{
			return OdDbDatabase.getCPtr(this.readFile(filename, allowCPConversion)).Handle;
		}

		private IntPtr SwigDirectorreadFile__SWIG_8([MarshalAs(UnmanagedType.LPWStr)] string filename)
		{
			return OdDbDatabase.getCPtr(this.readFile(filename)).Handle;
		}

		private void SwigDirectorwarning1(int warningOb, IntPtr objectId)
		{
			this.warning1((OdResult)warningOb, new OdDbObjectId(objectId, false));
		}

		private void SwigDirectorwarning(string warnVisGroup, int warningOb, IntPtr objectId)
		{
			this.warning(warnVisGroup, (OdResult)warningOb, new OdDbObjectId(objectId, false));
		}

		private void SwigDirectorwarning2(IntPtr err)
		{
			this.warning2(new OdError(err, false));
		}

		private void SwigDirectorwarning3(string warnVisGroup, IntPtr err)
		{
			this.warning3(warnVisGroup, new OdError(err, false));
		}

		private bool SwigDirectordoFullCRCCheck()
		{
			return this.doFullCRCCheck();
		}

		private IntPtr SwigDirectorplotSettingsValidator()
		{
			return OdDbPlotSettingsValidator.getCPtr(this.plotSettingsValidator()).Handle;
		}

		[return: MarshalAs(UnmanagedType.LPWStr)]
		private string SwigDirectorgetSubstituteFontByChar(IntPtr pFont, char unicodeChar, IntPtr pDb)
		{
			return this.getSubstituteFontByChar((OdFont)Teigha.Core.Helpers.odrxCreateObjectInternal(pFont, false), unicodeChar, (OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(pDb, false));
		}

		private bool SwigDirectorgetSystemFontFolders(IntPtr aDirs)
		{
			return this.getSystemFontFolders(new OdStringArray(aDirs, false));
		}

		private void SwigDirectorcollectFilePathsInDirectory__SWIG_0(IntPtr res, [MarshalAs(UnmanagedType.LPWStr)] string sPath, [MarshalAs(UnmanagedType.LPWStr)] string sFilter)
		{
			this.collectFilePathsInDirectory(new OdStringArray(res, false), sPath, sFilter);
		}

		private void SwigDirectorcollectFilePathsInDirectory__SWIG_1(IntPtr res, [MarshalAs(UnmanagedType.LPWStr)] string sPath)
		{
			this.collectFilePathsInDirectory(new OdStringArray(res, false), sPath);
		}

		private IntPtr SwigDirectorpatternManager()
		{
			return OdHatchPatternManager.getCPtr(this.patternManager()).Handle;
		}

		private bool SwigDirectorgetPassword([MarshalAs(UnmanagedType.LPWStr)] string dwgName, bool isXref, ref IntPtr password)
		{
			string text = Marshal.PtrToStringUni(password);
			string b = text;
			bool password2;
			try
			{
				password2 = this.getPassword(dwgName, isXref, ref text);
			}
			finally
			{
				if (text != b)
				{
					password = Marshal.StringToCoTaskMemUni(text);
				}
			}
			return password2;
		}

		private IntPtr SwigDirectorgetPasswordCache()
		{
			return OdPwdCache.getCPtr(this.getPasswordCache()).Handle;
		}

		private IntPtr SwigDirectornewPageController()
		{
			return OdDbPageController.getCPtr(this.newPageController()).Handle;
		}

		private int SwigDirectorpageObjects(IntPtr pDb)
		{
			return (int)this.pageObjects((OdDbDatabase)Teigha.Core.Helpers.odrxCreateObjectInternal(pDb, false));
		}

		private IntPtr SwigDirectorlayoutManager()
		{
			return OdDbLayoutManager.getCPtr(this.layoutManager()).Handle;
		}

		private uint SwigDirectoreducationalPlotStamp()
		{
			return this.educationalPlotStamp();
		}

		private IntPtr SwigDirectorgetDgnHostAppServices()
		{
			return OdDbBaseHostAppServices.getCPtr(this.getDgnHostAppServices()).Handle;
		}

		private void SwigDirectorgetThumbSize(IntPtr nWidth, IntPtr nHeight)
		{
			this.getThumbSize(new SWIGTYPE_p_unsigned_int(nWidth, false), new SWIGTYPE_p_unsigned_int(nHeight, false));
		}

		private object locker = new object();

		private HandleRef swigCPtr;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_0 swigDelegate0;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_1 swigDelegate1;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_2 swigDelegate2;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_3 swigDelegate3;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_4 swigDelegate4;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_5 swigDelegate5;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_6 swigDelegate6;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_7 swigDelegate7;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_8 swigDelegate8;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_9 swigDelegate9;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_10 swigDelegate10;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_11 swigDelegate11;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_12 swigDelegate12;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_13 swigDelegate13;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_14 swigDelegate14;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_15 swigDelegate15;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_16 swigDelegate16;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_17 swigDelegate17;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_18 swigDelegate18;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_19 swigDelegate19;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_20 swigDelegate20;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_21 swigDelegate21;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_22 swigDelegate22;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_23 swigDelegate23;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_24 swigDelegate24;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_25 swigDelegate25;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_26 swigDelegate26;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_27 swigDelegate27;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_28 swigDelegate28;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_29 swigDelegate29;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_30 swigDelegate30;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_31 swigDelegate31;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_32 swigDelegate32;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_33 swigDelegate33;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_34 swigDelegate34;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_35 swigDelegate35;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_36 swigDelegate36;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_37 swigDelegate37;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_38 swigDelegate38;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_39 swigDelegate39;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_40 swigDelegate40;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_41 swigDelegate41;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_42 swigDelegate42;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_43 swigDelegate43;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_44 swigDelegate44;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_45 swigDelegate45;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_46 swigDelegate46;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_47 swigDelegate47;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_48 swigDelegate48;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_49 swigDelegate49;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_50 swigDelegate50;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_51 swigDelegate51;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_52 swigDelegate52;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_53 swigDelegate53;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_54 swigDelegate54;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_55 swigDelegate55;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_56 swigDelegate56;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_57 swigDelegate57;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_58 swigDelegate58;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_59 swigDelegate59;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_60 swigDelegate60;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_61 swigDelegate61;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_62 swigDelegate62;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_63 swigDelegate63;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_64 swigDelegate64;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_65 swigDelegate65;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_66 swigDelegate66;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_67 swigDelegate67;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_68 swigDelegate68;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_69 swigDelegate69;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_70 swigDelegate70;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_71 swigDelegate71;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_72 swigDelegate72;

		private OdDbHostAppServices.SwigDelegateOdDbHostAppServices_73 swigDelegate73;

		private static Type[] swigMethodTypes0 = new Type[]
		{
			typeof(OdRxClass)
		};

		private static Type[] swigMethodTypes1 = new Type[0];

		private static Type[] swigMethodTypes2 = new Type[]
		{
			typeof(string),
			typeof(OdRxObject),
			typeof(OdDbBaseHostAppServices.FindFileHint)
		};

		private static Type[] swigMethodTypes3 = new Type[]
		{
			typeof(string),
			typeof(OdRxObject)
		};

		private static Type[] swigMethodTypes4 = new Type[]
		{
			typeof(string)
		};

		private static Type[] swigMethodTypes5 = new Type[0];

		private static Type[] swigMethodTypes6 = new Type[]
		{
			typeof(OdDbHostAppProgressMeter)
		};

		private static Type[] swigMethodTypes7 = new Type[0];

		private static Type[] swigMethodTypes8 = new Type[0];

		private static Type[] swigMethodTypes9 = new Type[0];

		private static Type[] swigMethodTypes10 = new Type[0];

		private static Type[] swigMethodTypes11 = new Type[0];

		private static Type[] swigMethodTypes12 = new Type[0];

		private static Type[] swigMethodTypes13 = new Type[0];

		private static Type[] swigMethodTypes14 = new Type[0];

		private static Type[] swigMethodTypes15 = new Type[]
		{
			typeof(string)
		};

		private static Type[] swigMethodTypes16 = new Type[]
		{
			typeof(string),
			typeof(string)
		};

		private static Type[] swigMethodTypes17 = new Type[]
		{
			typeof(OdResult)
		};

		private static Type[] swigMethodTypes18 = new Type[]
		{
			typeof(string),
			typeof(OdResult)
		};

		private static Type[] swigMethodTypes19 = new Type[]
		{
			typeof(uint)
		};

		private static Type[] swigMethodTypes20 = new Type[0];

		private static Type[] swigMethodTypes21 = new Type[0];

		private static Type[] swigMethodTypes22 = new Type[]
		{
			typeof(OdAuditInfo),
			typeof(string),
			typeof(int)
		};

		private static Type[] swigMethodTypes23 = new Type[]
		{
			typeof(OdTtfDescriptor),
			typeof(string).MakeByRefType()
		};

		private static Type[] swigMethodTypes24 = new Type[0];

		private static Type[] swigMethodTypes25 = new Type[0];

		private static Type[] swigMethodTypes26 = new Type[]
		{
			typeof(string),
			typeof(OdFontType)
		};

		private static Type[] swigMethodTypes27 = new Type[]
		{
			typeof(string),
			typeof(OdFontType)
		};

		private static Type[] swigMethodTypes28 = new Type[]
		{
			typeof(int),
			typeof(string),
			typeof(string),
			typeof(string),
			typeof(string)
		};

		private static Type[] swigMethodTypes29 = new Type[]
		{
			typeof(int),
			typeof(string),
			typeof(string),
			typeof(string)
		};

		private static Type[] swigMethodTypes30 = new Type[]
		{
			typeof(int),
			typeof(string),
			typeof(string)
		};

		private static Type[] swigMethodTypes31 = new Type[]
		{
			typeof(int),
			typeof(string)
		};

		private static Type[] swigMethodTypes32 = new Type[]
		{
			typeof(int)
		};

		private static Type[] swigMethodTypes33 = new Type[]
		{
			typeof(OdRxObject),
			typeof(OdRxObject),
			typeof(uint)
		};

		private static Type[] swigMethodTypes34 = new Type[]
		{
			typeof(OdRxObject),
			typeof(OdRxObject)
		};

		private static Type[] swigMethodTypes35 = new Type[]
		{
			typeof(OdRxObject)
		};

		private static Type[] swigMethodTypes36 = new Type[0];

		private static Type[] swigMethodTypes37 = new Type[0];

		private static Type[] swigMethodTypes38 = new Type[]
		{
			typeof(MultiThreadedMode)
		};

		private static Type[] swigMethodTypes39 = new Type[0];

		private static Type[] swigMethodTypes40 = new Type[]
		{
			typeof(bool),
			typeof(MeasurementValue)
		};

		private static Type[] swigMethodTypes41 = new Type[]
		{
			typeof(bool)
		};

		private static Type[] swigMethodTypes42 = new Type[0];

		private static Type[] swigMethodTypes43 = new Type[]
		{
			typeof(OdStreamBuf),
			typeof(bool),
			typeof(bool),
			typeof(string)
		};

		private static Type[] swigMethodTypes44 = new Type[]
		{
			typeof(OdStreamBuf),
			typeof(bool),
			typeof(bool)
		};

		private static Type[] swigMethodTypes45 = new Type[]
		{
			typeof(OdStreamBuf),
			typeof(bool)
		};

		private static Type[] swigMethodTypes46 = new Type[]
		{
			typeof(OdStreamBuf)
		};

		private static Type[] swigMethodTypes47 = new Type[]
		{
			typeof(OdStreamBuf),
			typeof(OdDbAuditInfo),
			typeof(string)
		};

		private static Type[] swigMethodTypes48 = new Type[]
		{
			typeof(OdStreamBuf),
			typeof(OdDbAuditInfo)
		};

		private static Type[] swigMethodTypes49 = new Type[]
		{
			typeof(OdStreamBuf)
		};

		private static Type[] swigMethodTypes50 = new Type[]
		{
			typeof(string),
			typeof(bool),
			typeof(bool),
			typeof(FileShareMode),
			typeof(string)
		};

		private static Type[] swigMethodTypes51 = new Type[]
		{
			typeof(string),
			typeof(bool),
			typeof(bool),
			typeof(FileShareMode)
		};

		private static Type[] swigMethodTypes52 = new Type[]
		{
			typeof(string),
			typeof(bool),
			typeof(bool)
		};

		private static Type[] swigMethodTypes53 = new Type[]
		{
			typeof(string),
			typeof(bool)
		};

		private static Type[] swigMethodTypes54 = new Type[]
		{
			typeof(string)
		};

		private static Type[] swigMethodTypes55 = new Type[]
		{
			typeof(OdResult),
			typeof(OdDbObjectId)
		};

		private static Type[] swigMethodTypes56 = new Type[]
		{
			typeof(string),
			typeof(OdResult),
			typeof(OdDbObjectId)
		};

		private static Type[] swigMethodTypes57 = new Type[]
		{
			typeof(OdError)
		};

		private static Type[] swigMethodTypes58 = new Type[]
		{
			typeof(string),
			typeof(OdError)
		};

		private static Type[] swigMethodTypes59 = new Type[0];

		private static Type[] swigMethodTypes60 = new Type[0];

		private static Type[] swigMethodTypes61 = new Type[]
		{
			typeof(OdFont),
			typeof(char),
			typeof(OdDbDatabase)
		};

		private static Type[] swigMethodTypes62 = new Type[]
		{
			typeof(OdStringArray)
		};

		private static Type[] swigMethodTypes63 = new Type[]
		{
			typeof(OdStringArray),
			typeof(string),
			typeof(string)
		};

		private static Type[] swigMethodTypes64 = new Type[]
		{
			typeof(OdStringArray),
			typeof(string)
		};

		private static Type[] swigMethodTypes65 = new Type[0];

		private static Type[] swigMethodTypes66 = new Type[]
		{
			typeof(string),
			typeof(bool),
			typeof(string).MakeByRefType()
		};

		private static Type[] swigMethodTypes67 = new Type[0];

		private static Type[] swigMethodTypes68 = new Type[0];

		private static Type[] swigMethodTypes69 = new Type[]
		{
			typeof(OdDbDatabase)
		};

		private static Type[] swigMethodTypes70 = new Type[0];

		private static Type[] swigMethodTypes71 = new Type[0];

		private static Type[] swigMethodTypes72 = new Type[0];

		private static Type[] swigMethodTypes73 = new Type[]
		{
			typeof(SWIGTYPE_p_unsigned_int),
			typeof(SWIGTYPE_p_unsigned_int)
		};

		public delegate IntPtr SwigDelegateOdDbHostAppServices_0(IntPtr protocolClass);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_1();

		[return: MarshalAs(UnmanagedType.LPWStr)]
		public delegate string SwigDelegateOdDbHostAppServices_2([MarshalAs(UnmanagedType.LPWStr)] string filename, IntPtr pDb, int hint);

		[return: MarshalAs(UnmanagedType.LPWStr)]
		public delegate string SwigDelegateOdDbHostAppServices_3([MarshalAs(UnmanagedType.LPWStr)] string filename, IntPtr pDb);

		[return: MarshalAs(UnmanagedType.LPWStr)]
		public delegate string SwigDelegateOdDbHostAppServices_4([MarshalAs(UnmanagedType.LPWStr)] string filename);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_5();

		public delegate void SwigDelegateOdDbHostAppServices_6(IntPtr pProgressMeter);

		[return: MarshalAs(UnmanagedType.LPWStr)]
		public delegate string SwigDelegateOdDbHostAppServices_7();

		[return: MarshalAs(UnmanagedType.LPWStr)]
		public delegate string SwigDelegateOdDbHostAppServices_8();

		[return: MarshalAs(UnmanagedType.LPWStr)]
		public delegate string SwigDelegateOdDbHostAppServices_9();

		public delegate int SwigDelegateOdDbHostAppServices_10();

		[return: MarshalAs(UnmanagedType.LPWStr)]
		public delegate string SwigDelegateOdDbHostAppServices_11();

		public delegate int SwigDelegateOdDbHostAppServices_12();

		public delegate int SwigDelegateOdDbHostAppServices_13();

		[return: MarshalAs(UnmanagedType.LPWStr)]
		public delegate string SwigDelegateOdDbHostAppServices_14();

		public delegate void SwigDelegateOdDbHostAppServices_15([MarshalAs(UnmanagedType.LPWStr)] string message);

		public delegate void SwigDelegateOdDbHostAppServices_16(string warnVisGroup, [MarshalAs(UnmanagedType.LPWStr)] string message);

		public delegate void SwigDelegateOdDbHostAppServices_17(int warningOb);

		public delegate void SwigDelegateOdDbHostAppServices_18(string warnVisGroup, int warningOb);

		[return: MarshalAs(UnmanagedType.LPWStr)]
		public delegate string SwigDelegateOdDbHostAppServices_19(uint errorCode);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_20();

		public delegate IntPtr SwigDelegateOdDbHostAppServices_21();

		public delegate void SwigDelegateOdDbHostAppServices_22(IntPtr pAuditInfo, [MarshalAs(UnmanagedType.LPWStr)] string strLine, int printDest);

		public delegate bool SwigDelegateOdDbHostAppServices_23(IntPtr description, ref IntPtr filename);

		[return: MarshalAs(UnmanagedType.LPWStr)]
		public delegate string SwigDelegateOdDbHostAppServices_24();

		[return: MarshalAs(UnmanagedType.LPWStr)]
		public delegate string SwigDelegateOdDbHostAppServices_25();

		[return: MarshalAs(UnmanagedType.LPWStr)]
		public delegate string SwigDelegateOdDbHostAppServices_26([MarshalAs(UnmanagedType.LPWStr)] string fontName, int fontType);

		[return: MarshalAs(UnmanagedType.LPWStr)]
		public delegate string SwigDelegateOdDbHostAppServices_27([MarshalAs(UnmanagedType.LPWStr)] string fontName, int fontType);

		[return: MarshalAs(UnmanagedType.LPWStr)]
		public delegate string SwigDelegateOdDbHostAppServices_28(int flags, [MarshalAs(UnmanagedType.LPWStr)] string dialogCaption, [MarshalAs(UnmanagedType.LPWStr)] string defExt, [MarshalAs(UnmanagedType.LPWStr)] string defFilename, [MarshalAs(UnmanagedType.LPWStr)] string filter);

		[return: MarshalAs(UnmanagedType.LPWStr)]
		public delegate string SwigDelegateOdDbHostAppServices_29(int flags, [MarshalAs(UnmanagedType.LPWStr)] string dialogCaption, [MarshalAs(UnmanagedType.LPWStr)] string defExt, [MarshalAs(UnmanagedType.LPWStr)] string defFilename);

		[return: MarshalAs(UnmanagedType.LPWStr)]
		public delegate string SwigDelegateOdDbHostAppServices_30(int flags, [MarshalAs(UnmanagedType.LPWStr)] string dialogCaption, [MarshalAs(UnmanagedType.LPWStr)] string defExt);

		[return: MarshalAs(UnmanagedType.LPWStr)]
		public delegate string SwigDelegateOdDbHostAppServices_31(int flags, [MarshalAs(UnmanagedType.LPWStr)] string dialogCaption);

		[return: MarshalAs(UnmanagedType.LPWStr)]
		public delegate string SwigDelegateOdDbHostAppServices_32(int flags);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_33(IntPtr pViewObj, IntPtr pDb, uint flags);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_34(IntPtr pViewObj, IntPtr pDb);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_35(IntPtr pViewObj);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_36();

		[return: MarshalAs(UnmanagedType.LPWStr)]
		public delegate string SwigDelegateOdDbHostAppServices_37();

		public delegate int SwigDelegateOdDbHostAppServices_38(int mtMode);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_39();

		public delegate IntPtr SwigDelegateOdDbHostAppServices_40(bool createDefault, int measurement);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_41(bool createDefault);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_42();

		public delegate IntPtr SwigDelegateOdDbHostAppServices_43(IntPtr pStreamBuf, bool allowCPConversion, bool partialLoad, [MarshalAs(UnmanagedType.LPWStr)] string password);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_44(IntPtr pStreamBuf, bool allowCPConversion, bool partialLoad);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_45(IntPtr pStreamBuf, bool allowCPConversion);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_46(IntPtr pStreamBuf);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_47(IntPtr pStreamBuf, IntPtr pAuditInfo, [MarshalAs(UnmanagedType.LPWStr)] string password);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_48(IntPtr pStreamBuf, IntPtr pAuditInfo);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_49(IntPtr pStreamBuf);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_50([MarshalAs(UnmanagedType.LPWStr)] string filename, bool allowCPConversion, bool partialLoad, int shareMode, [MarshalAs(UnmanagedType.LPWStr)] string password);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_51([MarshalAs(UnmanagedType.LPWStr)] string filename, bool allowCPConversion, bool partialLoad, int shareMode);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_52([MarshalAs(UnmanagedType.LPWStr)] string filename, bool allowCPConversion, bool partialLoad);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_53([MarshalAs(UnmanagedType.LPWStr)] string filename, bool allowCPConversion);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_54([MarshalAs(UnmanagedType.LPWStr)] string filename);

		public delegate void SwigDelegateOdDbHostAppServices_55(int warningOb, IntPtr objectId);

		public delegate void SwigDelegateOdDbHostAppServices_56(string warnVisGroup, int warningOb, IntPtr objectId);

		public delegate void SwigDelegateOdDbHostAppServices_57(IntPtr err);

		public delegate void SwigDelegateOdDbHostAppServices_58(string warnVisGroup, IntPtr err);

		public delegate bool SwigDelegateOdDbHostAppServices_59();

		public delegate IntPtr SwigDelegateOdDbHostAppServices_60();

		[return: MarshalAs(UnmanagedType.LPWStr)]
		public delegate string SwigDelegateOdDbHostAppServices_61(IntPtr pFont, char unicodeChar, IntPtr pDb);

		public delegate bool SwigDelegateOdDbHostAppServices_62(IntPtr aDirs);

		public delegate void SwigDelegateOdDbHostAppServices_63(IntPtr res, [MarshalAs(UnmanagedType.LPWStr)] string sPath, [MarshalAs(UnmanagedType.LPWStr)] string sFilter);

		public delegate void SwigDelegateOdDbHostAppServices_64(IntPtr res, [MarshalAs(UnmanagedType.LPWStr)] string sPath);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_65();

		public delegate bool SwigDelegateOdDbHostAppServices_66([MarshalAs(UnmanagedType.LPWStr)] string dwgName, bool isXref, ref IntPtr password);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_67();

		public delegate IntPtr SwigDelegateOdDbHostAppServices_68();

		public delegate int SwigDelegateOdDbHostAppServices_69(IntPtr pDb);

		public delegate IntPtr SwigDelegateOdDbHostAppServices_70();

		public delegate uint SwigDelegateOdDbHostAppServices_71();

		public delegate IntPtr SwigDelegateOdDbHostAppServices_72();

		public delegate void SwigDelegateOdDbHostAppServices_73(IntPtr nWidth, IntPtr nHeight);
	}
}
